<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org">
<head lang="en">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <!--    <title th:text="${username}">xx</title>-->
</head>
<body>
<h1 th:align="left">用户名:<span th:text="${username}"></span></h1>
<form method="post" th:action="@{/student/displayStudent}" th:object="${student}">

    <input hidden type="text" th:field="*{name}"/>
    <input hidden type="text" th:field="*{studentId}" />
    <input hidden type="text" th:field="*{grade}" />
    <input hidden type="text" th:field="*{department}" />
    <input hidden type="text" th:field="*{academy}" />
    <div>
        <label th:each="course:${allCourses}" class="check-box" th:align="left" >
            <input id="course" name="courseCheck" type="checkbox" th:value="${course.CId}" th:text="${course.courseName}" th:align="left" ><br>
        </label>
    </div>
    <br>
    <input type="submit" th:value="提交已选课程"/>
</form>
</body>
</html>